/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tman.system.peer.tman;

import common.peer.PeerAddress;

/**
 *
 * @author gianmariospacagna
 */
public class RingNode {
    private PeerAddress self;
    private PeerAddress ref;
    private Integer distance;

    public RingNode(PeerAddress self, PeerAddress ref, Integer distance) {
        this.self = self;
        this.ref = ref;
        this.distance = distance;
    }

    public Integer getDistance() {
        return distance;
    }

    public PeerAddress getRef() {
        return ref;
    }

    public PeerAddress getSelf() {
        return self;
    }
    
    
    
}
